package com.dragon.app.other;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;

import java.time.Duration;
import java.time.Instant;
import java.util.*;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class T2 {
	
	static int ee;
	
	static {
		int i = 1;
		System.out.println(ee);
		ii= 2;
		System.out.println(i);
	}
	
	static int ii;
	

	public static void main(String[] args) {

		Random random = new Random();
		System.out.println(random.nextInt(89));
		
		
		System.out.println((int)(Math.random()*30));
		
		
		LinkedHashMap lhm;
		
		Object oo;
		
		String str1 = "str1";
		String str2 = str1;
		System.out.println(str1 == str2);
		str1 = str1 + " changed";
		System.out.println(str1 == str2);
		
		StringBuffer stringBuffer;
		StringBuilder stringBuilder;
		
		TreeMap treeMap;
		
		Executor executor;
		
		Properties properties;
		
		int i = 1;
		int j = i;
		System.out.println("j:"+j);
		j = 2;
		System.out.println("j:"+j);
		System.out.println("i:"+i);
		
		Double double1;
		
		int it;
		System.out.println(ii);


		System.out.println(new Random().nextInt());
		System.out.println(new Random().nextFloat());
		System.out.println(new Random().nextDouble());

		Instant.now();
		Duration duration;

        Arrays.asList();
        
        
//        List list1 = new ArrayList();
//        List list2 = new ArrayList();
//        list2.add(list1);
//        List list3 = new ArrayList();
//        list3.add(list2);
//        list1.add(list3);
//        System.out.println(list1);
        
        LinkedList linkedList = new LinkedList();
        
        Collections.singletonList("sdf");


		CollectionUtils.isNotEmpty(linkedList);

		String str = "   ";
		System.out.println(StringUtils.isBlank(str));



	}

}
